﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SEC_MENU_TYPE
// * CreateDate    : 2011/7/14 16:40:23
// * Creater       : CodeSmith
// * LastChangeDate: 2011/7/14 16:40:23
// * LastChanger   : 2011/7/14 16:40:23
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.Data;
using ESOL.Common.Entity;

namespace ESOL.Business.Sec
{
    /// <summary>
    /// SecMenuType
    /// </summary>
    public partial class SecMenuTypeBs
    {
        #region GetByID
        /// <summary>
        /// Get Entity
        /// </summary>
        /// <param name="objSecMenuTypeEntity">Entity</param>
        /// <returns>Entity</returns>
        public static SecMenuTypeEntity GetSecMenuType(SecMenuTypeEntity objSecMenuTypeEntity)
        {
            return DataAccess.SelectSingle<SecMenuTypeEntity>(objSecMenuTypeEntity);
        }
        #endregion


        #region Insert
        /// <summary>
        /// Insert Data
        /// </summary>
        /// <param name="objSecMenuTypeEntity">Entity</param>
        /// <returns>true Insert Succeed; false Insert Fail</returns>
        public static bool InsertSecMenuType(SecMenuTypeEntity objSecMenuTypeEntity)
        {
            return DataAccess.Insert(objSecMenuTypeEntity);
        }

        public static bool InsertSecMenuType(List<SecMenuTypeEntity> objSecMenuTypeEntityList)
        {
            return DataAccess.Insert(objSecMenuTypeEntityList);
        }
        #endregion


        #region Update
        /// <summary>
        /// Update Data
        /// </summary>
        /// <param name="objSecMenuTypeEntity">Entity</param>
        /// <returns>true Update Succeed; false Update Fail</returns>
        public static bool UpdateSecMenuType(SecMenuTypeEntity objSecMenuTypeEntity)
        {
            return DataAccess.Update(objSecMenuTypeEntity);
        }

        public static bool UpdateSecMenuType(List<SecMenuTypeEntity> objSecMenuTypeEntityList)
        {
            return DataAccess.Update<SecMenuTypeEntity>(objSecMenuTypeEntityList);
        }
        #endregion


        #region Delete
        /// <summary>
        /// Delete Data
        /// </summary>
        /// <param name="objSecMenuTypeEntity">Entity</param>
        /// <returns>true Delete Succeed; false Delete Fail</returns>
        public static bool DeleteSecMenuType(SecMenuTypeEntity objSecMenuTypeEntity)
        {
            return DataAccess.Delete(objSecMenuTypeEntity);
        }

        public static bool DeleteSecMenuType(List<SecMenuTypeEntity> objSecMenuTypeEntityList)
        {
            return DataAccess.Delete<SecMenuTypeEntity>(objSecMenuTypeEntityList);
        }
        #endregion


        #region GetAll
        /// <summary>
        /// Get All Data
        /// </summary>
        /// <returns>Back All Data<returns>
        public static DataSet GetSecMenuTypeAll()
        {
            return DataAccess.SelectAllDataSet<SecMenuTypeEntity>();
        }
        public static List<SecMenuTypeEntity> GetMenuTypeListAll()
        {
            return DataAccess.SelectAll<SecMenuTypeEntity>();
        }
        #endregion
    }


}

